﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="InsertPerson.aspx.cs" Inherits="Admin_InsertPerson" %>
 <%@ Register Assembly="jQueryDatePicker" Namespace="Westwind.Web.Controls" TagPrefix="ww" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Maintain Account <br />
Insert <asp:Label ID="lbType" runat="server" Text=""></asp:Label>
<hr />
<div class="AccountInfo">        
        <h1><asp:Label ID="lb_typeofaccount" runat="server" Text="Type Account: "></asp:Label></h1> <span>
            <asp:DropDownList ID="drd_TypeofAccount" AutoPostBack="true" runat="server" Width="100px">
                <asp:ListItem>Staff</asp:ListItem>
                <asp:ListItem>Manager</asp:ListItem>
            </asp:DropDownList></span>
        <div class="cleaner"></div>
        <h1>UserID: </h1> <span><asp:Label ID="lb_UserID" runat="server" Text=""></asp:Label></span><br />        
        <h1>FullName: </h1> <span><asp:TextBox ID="txtFullName" runat="server" Width="300px"></asp:TextBox></span>
         <asp:RequiredFieldValidator ID="RqrFullName" runat="server" 
         ControlToValidate="txtFullName" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br />
        <br />
        <h1>Birthday: </h1> <span> <ww:jQueryDatePicker runat="server"
                id="txtBirthday" DisplayMode="AutoPopup" DateFormat="MM/dd/yyyy"  ></ww:jQueryDatePicker></span>
        <asp:RequiredFieldValidator ID="RqrBirthday" runat="server" 
         ControlToValidate="txtBirthday" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br />
        <br />
        <h1>Gender: </h1>
        <asp:RadioButton ID="radMale" runat="server" text="Male" Checked="True" 
            GroupName="group1"/>
        <asp:RadioButton ID="radFemale" runat="server" Text="Female" 
            GroupName="group1" />
        <br />
        <h1>Email: </h1><span><asp:TextBox ID="txtEmail" runat="server" Width="300px"></asp:TextBox></span>
        <asp:RequiredFieldValidator ID="rqrEmail" runat="server" 
         ControlToValidate="txtEmail" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br />
        <br />
        <h1>Address: </h1><span><asp:TextBox ID="txtAddress" runat="server" Width="300px"></asp:TextBox></span>
         <asp:RequiredFieldValidator ID="rqrAddress" runat="server" 
         ControlToValidate="txtAddress" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br />
        <br />
        <h1>Phone: </h1><span><asp:TextBox ID="txtPhone" runat="server" Width="300px"></asp:TextBox></span>
         <asp:RequiredFieldValidator ID="rqrPhone" runat="server" 
         ControlToValidate="txtPhone" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator>
        <br />
        <h1><asp:Label ID="lb_DateJoin" runat="server" Text="Date Join: "></asp:Label></h1>
        <span> <ww:jQueryDatePicker runat="server"
                id="txtDateJoin" DisplayMode="AutoPopup" DateFormat="MM/dd/yyyy"  ></ww:jQueryDatePicker> </span>
        <asp:RequiredFieldValidator ID="rqrDateJoin" runat="server" 
         ControlToValidate="txtDateJoin" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br />
        <div class="cleaner"></div>
        <h1><asp:Label ID="lb_Class" runat="server" Text="Class: "></asp:Label></h1>
        <span><asp:TextBox ID="txtClass" runat="server" Width="300px"></asp:TextBox> </span>
        <asp:RequiredFieldValidator ID="rqrClass" runat="server" 
         ControlToValidate="txtClass" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br />
        <div class="cleaner"></div>
        <h1><asp:Label ID="lb_Course" runat="server" Text="Course: "></asp:Label></h1>
        <span><asp:TextBox ID="txtCourse" runat="server" Width="300px"></asp:TextBox> </span>
         <asp:RequiredFieldValidator ID="rqrCourse" runat="server" 
         ControlToValidate="txtCourse" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br />
        <div class="cleaner"></div>
        <h1><asp:Label ID="lb_Subject" runat="server" Text="Subject: "></asp:Label></h1>
        <span><asp:TextBox ID="txt_Subject" runat="server" Width="300px"></asp:TextBox> 
          <asp:RequiredFieldValidator ID="rqrSubject" runat="server" 
         ControlToValidate="txt_Subject" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br />
        </span>
      
        <div class="cleaner"></div>
        <asp:Label ID="lblResult" runat="server"></asp:Label>
    
         <div class="cleaner"></div>
<asp:Button ID="btn_Insert" runat="server" Text="Insert" onclick="btn_Insert_Click"  ValidationGroup="1"/>
<asp:Button ID="btn_Reset" runat="server" Text="Reset" onclick="btn_Reset_Click" />
    <asp:HyperLink ID="hplink_Back" runat="server" NavigateUrl="~/Admin/MaintainAccount.aspx">Back to Maintain Account</asp:HyperLink>
</div>
</asp:Content>

